/* 全局样式 */
body {
    font-family: "微软雅黑", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

header {
    background-color: #ff9900;
    color: white;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "手写体", cursive;
    font-size: 28px;
    font-weight: bold;
    margin-left: 20px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin-right: 20px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #333;
}

.banner {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner img.active {
    opacity: 1;
}

main {
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-family: "卡通字体", sans-serif;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 10px;
    color: #ff9900;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery img {
    width: calc(33.333% - 10px);
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.member {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    background-color: white;
}

.member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.dorm全家福 img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 20px;
}

.dorm-duty-schedule table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.dorm-duty-schedule th,
.dorm-duty-schedule td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}